package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.Question;

/**
 * 刷题Mapper接口
 *
 * @author ruoyi
 * @date 2023-12-11
 */
public interface QuestionMapper
{
    /**
     * 查询刷题
     *
     * @param questionId 刷题主键
     * @return 刷题
     */
    public Question selectQuestionByQuestionId(Long questionId);

    /**
     * 查询刷题列表
     *
     * @param question 刷题
     * @return 刷题集合
     */
    public List<Question> selectQuestionList(Question question);

    /**
     * 新增刷题
     *
     * @param question 刷题
     * @return 结果
     */
    public int insertQuestion(Question question);

    /**
     * 修改刷题
     *
     * @param question 刷题
     * @return 结果
     */
    public int updateQuestion(Question question);

    /**
     * 删除刷题
     *
     * @param questionId 刷题主键
     * @return 结果
     */
    public int deleteQuestionByQuestionId(Long questionId);

    /**
     * 批量删除刷题
     *
     * @param questionIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteQuestionByQuestionIds(Long[] questionIds);
}
